package com.zzy.librarytest.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@JsonFormat(pattern = "yyyy/MM/dd",timezone = "GMT+8")
public class Record {
    private Integer id;
    private String bookname;
    private String lendtime;
    private String returntime;
    public Record() {
    }

    public String getLendtime() {
        return lendtime;
    }

    public void setLendtime(String lendtime) {
        this.lendtime = lendtime;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }


    public String getReturntime() {
        return returntime;
    }

    public void setReturntime(String returntime) {
        this.returntime = returntime;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", bookname='" + bookname + '\'' +
                ", lendtime=" + lendtime +
                ", returntime=" + returntime +
                '}';
    }
}
